package com.jindy.module.returnreceiptorder.service.impl;

import java.util.List;

import com.jindy.module.returnreceiptorder.domain.ReturnReceiptOrderProduct;
import com.jindy.module.returnreceiptorder.mapper.ReturnReceiptOrderProductMapper;
import com.jindy.module.returnreceiptorder.service.IReturnReceiptOrderProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 回货入库单产品Service业务层处理
 *
 * @author ruoyi
 * @date 2022-10-19
 */
@Service
public class ReturnReceiptOrderProductServiceImpl implements IReturnReceiptOrderProductService
{
    @Autowired
    private ReturnReceiptOrderProductMapper returnReceiptOrderProductMapper;

    /**
     * 查询回货入库单产品
     *
     * @param id 回货入库单产品主键
     * @return 回货入库单产品
     */
    @Override
    public ReturnReceiptOrderProduct selectReturnReceiptOrderProductById(Long id)
    {
        return returnReceiptOrderProductMapper.selectReturnReceiptOrderProductById(id);
    }

    /**
     * 查询回货入库单产品列表
     *
     * @param returnReceiptOrderProduct 回货入库单产品
     * @return 回货入库单产品
     */
    @Override
    public List<ReturnReceiptOrderProduct> selectReturnReceiptOrderProductList(ReturnReceiptOrderProduct returnReceiptOrderProduct)
    {
        return returnReceiptOrderProductMapper.selectReturnReceiptOrderProductList(returnReceiptOrderProduct);
    }

    /**
     * 新增回货入库单产品
     *
     * @param returnReceiptOrderProduct 回货入库单产品
     * @return 结果
     */
    @Override
    public int insertReturnReceiptOrderProduct(ReturnReceiptOrderProduct returnReceiptOrderProduct)
    {
        return returnReceiptOrderProductMapper.insertReturnReceiptOrderProduct(returnReceiptOrderProduct);
    }

    /**
     * 修改回货入库单产品
     *
     * @param returnReceiptOrderProduct 回货入库单产品
     * @return 结果
     */
    @Override
    public int updateReturnReceiptOrderProduct(ReturnReceiptOrderProduct returnReceiptOrderProduct)
    {
        return returnReceiptOrderProductMapper.updateReturnReceiptOrderProduct(returnReceiptOrderProduct);
    }

    /**
     * 批量删除回货入库单产品
     *
     * @param ids 需要删除的回货入库单产品主键
     * @return 结果
     */
    @Override
    public int deleteReturnReceiptOrderProductByIds(Long[] ids)
    {
        return returnReceiptOrderProductMapper.deleteReturnReceiptOrderProductByIds(ids);
    }

    /**
     * 删除回货入库单产品信息
     *
     * @param id 回货入库单产品主键
     * @return 结果
     */
    @Override
    public int deleteReturnReceiptOrderProductById(Long id)
    {
        return returnReceiptOrderProductMapper.deleteReturnReceiptOrderProductById(id);
    }
}
